<admintpl file="header" />
</head>
<body>
    <div class="wrap js-check-wrap">
        <ul class="nav nav-tabs">
            <li><a href="{:U('AdminLottery/index')}">{:L('BUSINESS_ADMINLOTTERY_INDEX')}</a></li>
            <!-- <li><a href="{:U('AdminLottery/add')}" target="_self">{:L('BUSINESS_ADMINLOTTERY_ADD')}</a></li> -->
            <li class="active"><a href="#A" data-toggle="tab">{:L('GENERAL_SETTING')}</a></li>
        </ul>
        <form class="form-horizontal js-ajax-form" action="{:U('AdminLottery/settings_post')}" method="post">
            <div class="tabbable">
                <div class="tab-content">
                  <div class="tab-pane active" id="A">
                        <fieldset>
                            <div class="control-group">
                                <label class="control-label">{:L('NAME')}</label>
                                <div class="controls">
                                    <input type="hidden" name="post[id]" value="{$post.id}">
                                    <input type="text" name="post[lottery_name]" value="{$post.lottery_name}"><span class="form-required">*</span>
                                </div>
                            </div>
                            <div class="control-group">
                                <label class="control-label">{:L('LOTTERY_DESCRIPTION')}</label>
                                <div class="controls">
                                    <textarea name="post[lottery_description]" rows="5" cols="57">{$post.lottery_description}</textarea>
                                </div>
                            </div>
                            <div class="control-group">
                                <label class="control-label">{:L('LOTTERY_COIN')}</label>
                                <div class="controls">
                                    <input type="text" name="post[cost_gold]" value="{$post.cost_gold}"><span class="form-required">*</span>
                                </div>
                            </div>
                            <div class="control-group">
                                <label class="control-label">{:L('PUBLISH_DATE')}</label>
                                <div class="controls">
                                    <input type="text" name="post[start_time]" value="{$post.start_time}" class="js-datetime" style="width: 160px;">
                                </div>
                            </div>
                            <div class="control-group">
                                <label class="control-label">{:L('UPDATE_DATE')}</label>
                                <div class="controls">
                                    <input type="text" name="post[end_time]" value="{$post.end_time}" class="js-datetime" style="width: 160px;">
                                </div>
                            </div>
                        </fieldset>
                  </div>

                </div>
            </div>
            <div class="form-actions">
                <button class="btn btn-primary js-ajax-submit" type="submit">{:L('SAVE')}</button>
                <a class="btn" href="javascript:history.back(-1);">{:L('BACK')}</a>
            </div>
        </form>
    </div>
    <script type="text/javascript" src="__PUBLIC__/js/common.js"></script>
</body>
</html>